const express=require('express');
const route=express.Router();
const pool=require('../pool')
route.get('/',(req,res)=>{
  var sql="select * from type";
  pool.query(sql,(err,result)=>{
    if(err)throw err;
    res.json({code:200,msg:"success",data:result})
  })
})

module.exports=route;